﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.Linq.Expressions;
using OpenWeb.Dal.Interfaces;
using OpenWeb.Dal.Models;
using System.Data.Objects;
using OpenWeb.Dal.Infrastructure;
using OpenWeb.Dal.Repository;

namespace OpenWeb.Dal.Repository
{
    public class DocumentRepository : EFRepositoryBase<Document>, IDocumentRepository
    {
       //TODO : injection 
        public DocumentRepository()
        : this(new PocoRepositoryContext()) // oppure EFRepositoryContext
        {
        }

        public DocumentRepository(IRepositoryContext repositoryContext)
            : base(repositoryContext)
        {
        }
    }

    public class CopyOfDocumentRepository : EFRepositoryBase<Document>, IDocumentRepository
    {
        public CopyOfDocumentRepository()
        : this(new PocoRepositoryContext())
        {
        }

        public CopyOfDocumentRepository(IRepositoryContext repositoryContext)
            : base(repositoryContext)
        {
        }
    }
}
